package com.woniuxy.yoga.business.model.form.course;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Positive;

/**
 * 统计场馆月上课总时长参数对象
 */
@Data
@ApiModel("统计场馆月上课总时长参数对象")
public class CountMonthCourseTimeForm {

    @ApiModelProperty("开始时间")
    @NotBlank(message = "开始时间不能为空")
    @Pattern(regexp = "^20\\d{2}-(0[1-9]|1[0-2])-([0-2][1-9]|[1-3]0|31) ([0-1]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$")
    private String startTime;

    @ApiModelProperty("结束时间")
    @NotBlank(message = "结束时间不能为空")
    @Pattern(regexp = "^20\\d{2}-(0[1-9]|1[0-2])-([0-2][1-9]|[1-3]0|31) ([0-1]\\d|2[0-3]):[0-5]\\d:[0-5]\\d$")
    private String endTime;

    @ApiModelProperty("场馆ID")
    @NotBlank(message = "场馆ID不能为空")
    @Positive
    private Integer storeId;
}
